package cn.b.training.baby_education_training.service;

/**
 * @program: baby_education
 * @description
 * @author: wuying
 * @create: 2022-11-29 11:18
 **/
public interface SmsService {
    /**
     * 发送短信验证码
     * @param phone 手机号码
     * @return boolean 发送是否成功的标记
     */
    public boolean sendValidateSms(String phone);

    /**
     * 验证手机验证码
     * @param phone 手机号码
     * @param code 待验证的验证码
     * @return boolean 验证码是否正确的标记
     */
    public boolean validateSms(String phone,String code);

}
